home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / GameKit / gamekit-1 / Makefile.mk < prev    next >
Makefile  |  1995-06-12  |  6KB  |  172 lines

  1. #
  2. #  NeXT Internal Library Makefile
  3. #  Copyright 1987, 1991, NeXT Computer, Inc.
  4. #
  5. #  This Makefile is used for NeXT software libraries.
  6. #
  7. #  Fill in values for the various variables at the places marked by
  8. #  **number**.  Any rules or dependencies of your own can be added
  9. #  at the end of the file.
  10. #
  11.  
  12. DSTROOT = /.
  13.  
  14. # directory where included Makefiles are located.
  15. MAKE_DIR = /LocalDeveloper/Makefiles/lib
  16.  
  17. #  **1**  -LIBRARY NAME-
  18. #  The base name of the library goes here. This should be the same
  19. #  name as the SGS project the library is built under.  For example, if
  20. #  you enter "appkit" as the name, then the name of the SGS project
  21. #  should be "appkit", and the library created will be "libappkit.a".
  22. NAME = gamekit
  23.  
  24. #  **2**  -SOURCE FILES-
  25. #  Here list the .m, .c, .psw, .pswm, .s, .l, .lm, .y, .ym, .ps and
  26. #  .spec files.  You may delete any lines that you don't use.
  27. #  OTHER_SRCS is used for files with other suffixes that you wish
  28. #  to be treated like source (i.e., printed with the source, copied
  29. #  with the source, etc.).  For files in OTHER_SRCS, you need to
  30. #  specify the corresponding .o file in OTHER_SRCS_OFILES.
  31. MFILES = BonusTracker.m \
  32.     ArrayBonusTracker.m \
  33.     RandomBonusTracker.m \
  34.     ScoreKeeper.m \
  35.     Animator.m \
  36.     AnimatedView.m \
  37.     DirtPile.m \
  38.     GameBrain.m \
  39.     GameView.m \
  40.     GameActor.m \
  41.     GameInfo.m \
  42.     WinDel.m \
  43.     HighScoreDistributor.m \
  44.     HighScoreController.m \
  45.     HighScoreTable.m \
  46.     HighScoreServer.m \
  47.     HighScoreSlot.m \
  48.     GKHSLocalServer.m \
  49.     GKHighScorePanel.m \
  50.     InfoController.m \
  51.     PreferencesBrain.m \
  52.     GKSound.m \
  53.     GKSoundStream.m \
  54.     SoundPlayer.m \
  55.     PlayerUpView.m \
  56.     GrayView2.m \
  57.     GKActorManager.m \
  58.     GKCollider.m \
  59.     GKCollisionGroup.m \
  60.     GKStage.m \
  61.     GKActor.m \
  62.     GKTextActor.m \
  63.     ScorePlayer.m
  64. # delete the # and add a "\" to the end of the GravyView2.m line above
  65. # to use the MusicKit (ScorePlayer object)
  66.  
  67. CFILES = 
  68. PSWFILES = GKText.psw
  69. PSWMFILES = 
  70. SFILES = 
  71. LFILES = 
  72. LMFILES = 
  73. YFILES = 
  74. YMFILES = 
  75. PSFILES = 
  76. OTHER_SRCS = 
  77. OTHER_SRCS_OFILES = 
  78.  
  79. #  **3**  -COMMAND OPTIONS-
  80. #  These are passed as arguments to the Objective-C compiler, pswrap, 
  81. #  as, lex, yacc and speculate.  You may delete lines that you don't use.  
  82. #  All CFLAGS also get passed to Objective-C.
  83. #    DEBUGCFLAGS is substituted for CFLAGS when "debug" is made.
  84. #    PROFCFLAGS is substituted for CFLAGS when "profile" is made.
  85. #  Under OBJCFLAGS, for each library that you use that supplies class
  86. #  and message group files, you must use a -I$(OBJDIR)/XXX, where
  87. #  XXX is the base name of the library.
  88.  
  89. # Choose one of the following; if you don't have the CCRMA Music Kit, then
  90. # don't use the music kit option...or if you want a library that will link
  91. # without the music kit, turn it off.  There a #ifdefs through the code to
  92. # remove any music kit dependencies, what few there are.
  93. # This line uses the Music Kit:
  94. COMMONCFLAGS = -DGK_USE_MUSICKIT -I../Headers -I/LocalDeveloper/Headers
  95. # This line does not use the Music Kit: (use the first for a fat lib)
  96. #COMMONCFLAGS = -I../Headers -I/LocalDeveloper/Headers -arch i386 -arch m68k
  97. #COMMONCFLAGS = -I../Headers -I/LocalDeveloper/Headers
  98.  
  99. OBJCFLAGS = 
  100. CFLAGS = -Wall -O2 $(COMMONCFLAGS)
  101. OPTCFLAGS = -O2 $(COMMONCFLAGS)
  102. DEBUGCFLAGS = -g -DDEBUG -Wall $(COMMONCFLAGS)
  103. PROFCFLAGS = -pg -g $(COMMONCFLAGS)
  104. SHLIBCFLAGS = -O2 -DSHLIB $(COMMONCFLAGS)
  105. PSWFLAGS = 
  106. ASFLAGS = 
  107. LFLAGS = 
  108. YFLAGS = 
  109. RANLIBFLAGS = 
  110. # IFLAGS = -q -c  -m 444 -o root -g wheel
  111. IFLAGS = -q -c  -m 444
  112. # MKDIRSFLAGS = -m 755 -o root -g wheel
  113. MKDIRSFLAGS = -m 755
  114. ARFLAGS = ruv
  115. VERSFLAGS = -l
  116.  
  117. #  **4**  -INCLUDE FILES-
  118. #  Private include files are used by the library's code, but not needed
  119. #  by the library's users.  Public include files are needed by others who
  120. #  will use the library, and must be installed along with the library.
  121. #  Compatibility include files are used to provide for compatibility with
  122. #  previous releases.  Local include files are only used by other local projects.
  123. PUBLIC_INCFILES = ../Headers/gamekit
  124. COMPAT_INCFILES =
  125. LOCAL_INCFILES =
  126. PRIVATE_INCFILES = 
  127.  
  128. #  **5**  -BY_PRODUCTS GENERATED FROM BUILDS-
  129. #  If your build procedure creates any files other than .o files and the
  130. #  .c and .m files left over from pswrap, you should list them here so
  131. #  they are removed when a make clean is done.
  132. BY_PRODUCTS = 
  133.  
  134. #  **6**  -INSTALLATION LOCATIONS-
  135. #  The following directories determines where files get installed.
  136. # places where libraries get installed
  137. LIBDIR = $(DSTROOT)/usr/local/lib
  138. SHLIBDIR = $(DSTROOT)/usr/local/shlib
  139.  
  140. # places where headers get installed
  141. INCDIR = $(DSTROOT)/LocalDeveloper/Headers/$(NAME)
  142. COMPATINC = $(DSTROOT)/LocalDeveloper/2.0CompatibleHeaders/$(NAME)
  143. LCLINC = $(DSTROOT)/LocalDeveloper/Headers/$(NAME)
  144.  
  145. # place where PostScript package files get installed
  146. # PSLIBDIR = $(DSTROOT)/usr/lib/NextStep
  147.  
  148. #this file included for standard functionality
  149. include $(MAKE_DIR)/Makefile.lib
  150.  
  151. #  **7**  -ALL AND INSTALL TARGETS-
  152. #  You must define your own all and install targets here.  "all" should
  153. #  build all products of your project.  "install" should install these
  154. #  products in the filesystem whose root is $(DSTROOT).  There are certain
  155. #  targets defined in Makefile.lib which you can use to fulfill the all
  156. #  and install targets.  These are optimized, debug, profile, shlib,
  157. #  optimized_install, debug_install, profile_install, shlib_install,
  158. #  and common_install.
  159. all:: $(PRODUCT)
  160.  
  161. install:: common_install profile_install
  162.  
  163.  
  164. # You may comment in this line to get dependencies for the include files
  165. # you use.  To generate the dependencies, do a "make depend".
  166. #include Makefile.depends
  167.  
  168. #  any extra rules or dependencies can be added after this line
  169.  
  170. precomp:
  171.     echo $(CC) $(CFLAGS) -precomp gamekit.h -o gamekit.p
  172.     (cd ../Headers/gamekit; $(CC) $(CFLAGS) -precomp gamekit.h -o gamekit.p)